/**
 * 
 */
package at.ac.tuwien.swa075.telco.hlr.dao.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import at.ac.tuwien.swa075.telco.hlr.SubscriberStatus;

/**
 * @author vovmj01
 *
 */
@Entity
@Table (name="subscription")
public class SubscriptionEntity  {
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private int id;
	
	
	private String imsi;
	private String imei;
	
	@ManyToOne
	@JoinColumn
	private CustomerEntity customer;
	private String location;
	private SubscriberStatus status;
	private String code;
	private String number;
	/* (non-Javadoc)
	 * @see at.ac.tuwien.swa075.telco.hlr.dao.entities.ISubscription#getCode()
	 */
	public String getCode() {
		return code;
	}
	/* (non-Javadoc)
	 * @see at.ac.tuwien.swa075.telco.hlr.dao.entities.ISubscription#setCode(java.lang.String)
	 */
	public void setCode(String code) {
		this.code = code;
	}
	/* (non-Javadoc)
	 * @see at.ac.tuwien.swa075.telco.hlr.dao.entities.ISubscription#getCustomer()
	 */
	public CustomerEntity getCustomer() {
		return customer;
	}
	/* (non-Javadoc)
	 * @see at.ac.tuwien.swa075.telco.hlr.dao.entities.ISubscription#setCustomer(at.ac.tuwien.swa075.telco.hlr.dao.entities.ICustomer)
	 */
	public void setCustomer(CustomerEntity customer) {
		this.customer = customer;
	}
	/* (non-Javadoc)
	 * @see at.ac.tuwien.swa075.telco.hlr.dao.entities.ISubscription#getId()
	 */
	public int getId() {
		return id;
	}
	/* (non-Javadoc)
	 * @see at.ac.tuwien.swa075.telco.hlr.dao.entities.ISubscription#setId(int)
	 */
	public void setId(int id) {
		this.id = id;
	}
	/* (non-Javadoc)
	 * @see at.ac.tuwien.swa075.telco.hlr.dao.entities.ISubscription#getImei()
	 */
	public String getImei() {
		return imei;
	}
	/* (non-Javadoc)
	 * @see at.ac.tuwien.swa075.telco.hlr.dao.entities.ISubscription#setImei(java.lang.String)
	 */
	public void setImei(String imei) {
		this.imei = imei;
	}
	/* (non-Javadoc)
	 * @see at.ac.tuwien.swa075.telco.hlr.dao.entities.ISubscription#getImsi()
	 */
	public String getImsi() {
		return imsi;
	}
	/* (non-Javadoc)
	 * @see at.ac.tuwien.swa075.telco.hlr.dao.entities.ISubscription#setImsi(java.lang.String)
	 */
	public void setImsi(String imsi) {
		this.imsi = imsi;
	}
	/* (non-Javadoc)
	 * @see at.ac.tuwien.swa075.telco.hlr.dao.entities.ISubscription#getLocation()
	 */
	public String getLocation() {
		return location;
	}
	/* (non-Javadoc)
	 * @see at.ac.tuwien.swa075.telco.hlr.dao.entities.ISubscription#setLocation(java.lang.String)
	 */
	public void setLocation(String location) {
		this.location = location;
	}
	/* (non-Javadoc)
	 * @see at.ac.tuwien.swa075.telco.hlr.dao.entities.ISubscription#getNumber()
	 */
	public String getNumber() {
		return number;
	}
	/* (non-Javadoc)
	 * @see at.ac.tuwien.swa075.telco.hlr.dao.entities.ISubscription#setNumber(java.lang.String)
	 */
	public void setNumber(String number) {
		this.number = number;
	}
	/* (non-Javadoc)
	 * @see at.ac.tuwien.swa075.telco.hlr.dao.entities.ISubscription#getStatus()
	 */
	public SubscriberStatus getStatus() {
		return status;
	}
	/* (non-Javadoc)
	 * @see at.ac.tuwien.swa075.telco.hlr.dao.entities.ISubscription#setStatus(at.ac.tuwien.swa075.telco.hlr.SubscriberStatus)
	 */
	public void setStatus(SubscriberStatus status) {
		this.status = status;
	}

}
